From f4edbf381b969615a7bb3ff5936b0ef80388d3d5 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 21 Jul 2025 17:01:04 -0400 Subject: [PATCH] rust: Regenerate and release 0.20.4 This ensures we actually pick up the changes for `Since`. --- Cargo.toml | 2 +- rust-bindings/src/auto/deployment.rs | 2 ++ rust-bindings/src/auto/sysroot.rs | 6 ++++++ rust-bindings/src/auto/versions.txt | 2 +- rust-bindings/sys/src/auto/versions.txt | 2 +- rust-bindings/sys/src/lib.rs | 8 ++++++++ 6 files changed, 19 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7d1fc554..d2581434 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ name = "ostree" readme = "rust-bindings/README.md" repository = "https://github.com/ostreedev/ostree" rust-version = "1.77.0" -version = "0.20.3" +version = "0.20.4" include = [ "/COPYING", diff --git a/rust-bindings/src/auto/deployment.rs b/rust-bindings/src/auto/deployment.rs index 6a8cb11f..c095dec1 100644 --- a/rust-bindings/src/auto/deployment.rs +++ b/rust-bindings/src/auto/deployment.rs @@ -147,6 +147,8 @@ impl Deployment { } } + #[cfg(feature = "v2025_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v2025_3")))] #[doc(alias = "ostree_deployment_is_soft_reboot_target")] pub fn is_soft_reboot_target(&self) -> bool { unsafe { diff --git a/rust-bindings/src/auto/sysroot.rs b/rust-bindings/src/auto/sysroot.rs index 397d9c9b..77287232 100644 --- a/rust-bindings/src/auto/sysroot.rs +++ b/rust-bindings/src/auto/sysroot.rs @@ -74,6 +74,8 @@ impl Sysroot { // unsafe { TODO: call ffi:ostree_sysroot_cleanup_prune_repo() } //} + #[cfg(feature = "v2025_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v2025_3")))] #[doc(alias = "ostree_sysroot_clear_soft_reboot")] pub fn clear_soft_reboot(&self, cancellable: Option<&impl IsA>) -> Result<(), glib::Error> { unsafe { @@ -110,6 +112,8 @@ impl Sysroot { } } + #[cfg(feature = "v2025_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v2025_3")))] #[doc(alias = "ostree_sysroot_deployment_can_soft_reboot")] pub fn deployment_can_soft_reboot(&self, deployment: &Deployment) -> bool { unsafe { @@ -171,6 +175,8 @@ impl Sysroot { } } + #[cfg(feature = "v2025_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v2025_3")))] #[doc(alias = "ostree_sysroot_deployment_set_soft_reboot")] pub fn deployment_set_soft_reboot(&self, deployment: &Deployment, allow_kernel_skew: bool, cancellable: Option<&impl IsA>) -> Result<(), glib::Error> { unsafe { diff --git a/rust-bindings/src/auto/versions.txt b/rust-bindings/src/auto/versions.txt index 8df17db5..6bc2563d 100644 --- a/rust-bindings/src/auto/versions.txt +++ b/rust-bindings/src/auto/versions.txt @@ -1,2 +1,2 @@ Generated by gir (https://github.com/gtk-rs/gir @ 19ccbbc9a3d1) -from gir-files (@ 98aa788d67af) +from gir-files (@ ac81709f18d2) diff --git a/rust-bindings/sys/src/auto/versions.txt b/rust-bindings/sys/src/auto/versions.txt index 8df17db5..6bc2563d 100644 --- a/rust-bindings/sys/src/auto/versions.txt +++ b/rust-bindings/sys/src/auto/versions.txt @@ -1,2 +1,2 @@ Generated by gir (https://github.com/gtk-rs/gir @ 19ccbbc9a3d1) -from gir-files (@ 98aa788d67af) +from gir-files (@ ac81709f18d2) diff --git a/rust-bindings/sys/src/lib.rs b/rust-bindings/sys/src/lib.rs index 2557d1b6..c430fb7d 100644 --- a/rust-bindings/sys/src/lib.rs +++ b/rust-bindings/sys/src/lib.rs @@ -1674,6 +1674,8 @@ extern "C" { #[cfg(feature = "v2018_3")] #[cfg_attr(docsrs, doc(cfg(feature = "v2018_3")))] pub fn ostree_deployment_is_pinned(self_: *mut OstreeDeployment) -> gboolean; + #[cfg(feature = "v2025_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v2025_3")))] pub fn ostree_deployment_is_soft_reboot_target(self_: *mut OstreeDeployment) -> gboolean; #[cfg(feature = "v2018_3")] #[cfg_attr(docsrs, doc(cfg(feature = "v2018_3")))] @@ -3109,6 +3111,8 @@ extern "C" { cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError, ) -> gboolean; + #[cfg(feature = "v2025_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v2025_3")))] pub fn ostree_sysroot_clear_soft_reboot( self_: *mut OstreeSysroot, cancellable: *mut gio::GCancellable, @@ -3140,6 +3144,8 @@ extern "C" { cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError, ) -> gboolean; + #[cfg(feature = "v2025_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v2025_3")))] pub fn ostree_sysroot_deployment_can_soft_reboot( self_: *mut OstreeSysroot, deployment: *mut OstreeDeployment, @@ -3181,6 +3187,8 @@ extern "C" { is_pinned: gboolean, error: *mut *mut glib::GError, ) -> gboolean; + #[cfg(feature = "v2025_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v2025_3")))] pub fn ostree_sysroot_deployment_set_soft_reboot( self_: *mut OstreeSysroot, deployment: *mut OstreeDeployment, -- 2.30.2